package com.erp.masterdata.common.model;

import lombok.Data;

import javax.persistence.*;
import java.util.Date;

/**
 * 所有实体类的基类
 * @Author: syz
 * @blame syz
 * @CreateTime: 2021/4/6
 */
@Data
@MappedSuperclass
public class BaseModel {

    private static final long serialVersionUID = 1L;


    /**
     * 是否删除
     */
    @Column(name = "is_del", nullable = false, length = 1)
    private String isDel;

    /**
     * 创建人
     */
    @Column(name = "created_by", nullable = false)
    private String createdBy;

    /**
     * 创建时间
     */
    @Column(name = "created_date", nullable = false)
    private Date createdDate;

    /**
     * 更新人
     */
    @Column(name = "last_updated_by", nullable = false)
    private String lastUpdatedBy;

    /**
     * 创建时间
     */
    @Column(name = "last_updated_date", nullable = false)
    private Date lastUpdatedDate;

    //组织机构
    @Column(name = "org_code", nullable = false)
    private String orgCode;

}